package com.qh;

import com.qh.basic.util.DistanceUtils;
import com.qh.basic.util.Point;
import com.qh.org.domain.Shop;
import com.qh.org.mapper.ShopMapper;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
/*
import java.util.ArrayList;
import java.util.List;

public class test1 extends BaseTest{

    @Autowired
    private ShopMapper shopMapper;

    @Test
    public void test1() throws Exception{
        List<Shop> shops = shopMapper.loadAll();
        ArrayList<Object> s = new ArrayList<>();
        for (Shop shop : shops) {
            s.add(shop.getAddress());
        }
        Point point = DistanceUtils.getPoint("成都市天府广场");
        DistanceUtils.getNearestShop(point,s);
    }
}*/
